<?php if (!defined('THINK_PATH')) exit();?><form id="pagerForm" method="post" action="<?php echo U();?>"> 
    <input type="hidden" name="pageNum" value="<?php echo ($_REQUEST["pageNum"]); ?>" />
    <input type="hidden" name="numPerPage" value="<?php echo ($_REQUEST["numPerPage"]); ?>" /> 
    <input type="hidden" name="_order" value="<?php echo ($_REQUEST["_order"]); ?>" />
    <input type="hidden" name="_sort" value="<?php echo ($_REQUEST["_sort"]); ?>" />    
</form>


<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" action="/ft_system/Admin/Notice/index" method="post">
	<div class="searchBar">		
            <table class="searchContent">
                <tr>
                    <td>
                        标题关键字：<input type="text" name="title" />
                    </td>
                </tr>
            </table>
            <div class="subBar">
                <ul>
                    <li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
                </ul>
            </div>
	</div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">            
            <li><a class="add" href="/ft_system/Admin/Notice/show" target="dialog" mask="true" width='800' height='600'><span>添加</span></a></li>                      
            <li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="id[]" href="/ft_system/Admin/Notice/del" class="delete"><span>批量删除</span></a></li>                  
            <li><a class="edit" href="/ft_system/Admin/Notice/show/id/{l_id}" target="dialog" mask="true" warn="请选择一条信息" width='800' height='600'><span>修改</span></a></li>
            <li class="line">line</li>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="138">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="id[]" class="checkboxCtrl"></th>
                <th width="40"  align="center">序号</th>
                <th width="200" >标题</th>
                <th width="200" >英文标题</th>
                <th width="100" align="center">所属部门</th>
                <th width="110" orderField='add_time' <?php if($_REQUEST['_order'] == 'add_time'): ?>class="<?php echo ($_REQUEST["_sort"]); ?>"<?php endif; ?>>发布时间</th>
                <th width="40" align="center" >发布人</th>
                <th width="40" align="center" orderField='sign' <?php if($_REQUEST['_order'] == 'sign'): ?>class="<?php echo ($_REQUEST["_sort"]); ?>"<?php endif; ?>>类型</th>
                <th width="100" align="center">操作</th>
            </tr>
        </thead>
        <tbody>
            <?php if(is_array($list)): foreach($list as $key=>$list): ?><tr target="l_id" rel="<?php echo ($list["id"]); ?>">
                    <td><input name="id[]" value="<?php echo ($list["id"]); ?>" type="checkbox"></td>
                    <td><?php echo ($key+1); ?></td>
                    <td><?php echo ($list["title"]); ?></td>
                    <td><?php echo ($list["en_title"]); ?></td>
                    <td><?php echo (getSection($list["section_id"])); ?></td>
                    <td><?php echo ($list["add_time"]); ?></td>
                    <td><?php echo (getUsername($list["user_id"])); ?></td>
                    <td>
                        <?php switch($list["sign"]): case "1": ?>公告<?php break;?>
                            <?php case "2": ?>公司新闻<?php break;?>
                            <?php case "3": ?>外部新闻<?php break; endswitch;?>                           
                    </td>
                    <td>                            
                        <a href="<?php echo U('Notice/show',array('id'=>code($list['id'],1)));?>" target="dialog" width='800' height='600'><span>查看</span></a>   |                        
                        <a title="确定删除该信息" target="ajaxTodo" href="<?php echo U('Notice/del',array('id'=>code($list['id'],1)));?>" >删除</a>                       
                    </td>
                </tr><?php endforeach; endif; ?>
        </tbody>        
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20">20</option>
                <option value="50">50</option>
                <option value="100">100</option>
                <option value="200">200</option>
            </select>
            <span>条，共<?php echo ($totalCount); ?>条</span>          
        </div>
        <div class="pagination" targetType="navTab" totalCount="<?php echo ($totalCount); ?>" numPerPage="<?php echo ($numPerPage); ?>" pageNumShown="6"  currentPage="<?php echo ($currentPage); ?>"></div>
    </div>
</div><style type="text/css" media="screen">
    .imgs div{height:100px!important;}
</style>